import { createApp } from "vue";
import App from "./App.vue";
// import  {store, injectionKey } from "./store";
import router from "./route";
import "virtual:svg-icons-register";
// import { createPinia } from "pinia";
// import { piniaPlugin } from "./utils/piniaPlugn";

import Vant from "./hooks/useVant";
import store from "./store/index";
// import weiXinJsSdk from "weixin-js-sdk";
// const store = createPinia();
// store.use(
//   piniaPlugin({key: 'pnina'})
// );

import { Button, Circle, Loading, Icon } from 'vant';
// import VantResult from 'vant'
const app = createApp(App);
app.use(store);
app.use(router).use(Vant);
app.mount("#app");

app.use(Button);
app.use(Circle);
app.use(Loading);
app.use(Icon);
// app.config.globalProperties.$wx = weiXinJsSdk;
// app.use(VantResult);
